import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '@/views/home/HomeView'
import Analysis from '@/views/analysis/AnalysisView'
import Energy from '@/views/energy/EnergyEfficiency'
import Equipment from '@/views/equipment/Equipment'
import Evaluation from '@/views/evaluation/Evaluation'
import TimeDelay from '@/views/Fault/TimeDelay'
import TimelyManner from '@/views/Fault/TimelyManner'
import Senior from '@/views/senior/SeniorView'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/analysis',
    name: 'analysis',
    component: Analysis
  },
  {
    path: '/energy',
    name: 'energy',
    component: Energy
  },
  {
    path: '/equipment',
    name: 'equipment',
    component: Equipment
  },
  {
    path: '/evaluation',
    name: 'evaluation',
    component: Evaluation
  },
  {
    path: '/timedelay',
    name: 'timedelay',
    component: TimeDelay
  },
  {
    path: '/timelymanner',
    name: 'timelymanner',
    component: TimelyManner
  },
  {
    path: '/senior',
    name: 'senior',
    component: Senior
  },
]

const router = new VueRouter({
  routes
})

export default router
